package com.cn.crmsystem.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;

import java.util.Date;

@ApiModel(value = "合同实体类（Contract）")
public class Contract {
  @Id
  @ApiModelProperty("合同编号(不用传值，用来关联其他表)")
  private Integer contract_id;
  @ApiModelProperty("合同编号")
  private String contract_number;
  @ApiModelProperty("合同名称")
  private String contract_name;
  @ApiModelProperty("客户id")
  private String customer_id;
  @ApiModelProperty("商机id")
  private Integer opp_id;
  @ApiModelProperty("定金")
  private double deposit;
  @ApiModelProperty("总金额")
  private double totle_money;
  @ApiModelProperty("签订时间")
  @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
  private Date siging_time;
  @ApiModelProperty("合同开始时间")
  @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
  private Date contract_start_time;
  @ApiModelProperty("合同结束时间")
  @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
  private Date contract_end_time;
  @ApiModelProperty("创建人id")
  private Integer user_id;
  @ApiModelProperty("联系人id")
  private Integer contacts_id;
  @ApiModelProperty("删除状态（0：显示,1：隐藏）")
  private Integer delete_state;
  @ApiModelProperty("附件  (doc,扫描件）")
  private String enclosure_url;
  @ApiModelProperty("备注")
  private String remarks;
  @ApiModelProperty("客户名")
  private String customername;
  @ApiModelProperty("商机名")
  private String opportunityname;
  @ApiModelProperty("联系人名")
  private String contactsname;
  @ApiModelProperty("创建人")
  private String username;

  public Integer getContract_id() {
    return contract_id;
  }

  public void setContract_id(Integer contract_id) {
    this.contract_id = contract_id;
  }

  public String getContract_number() {
    return contract_number;
  }

  public void setContract_number(String contract_number) {
    this.contract_number = contract_number;
  }

  public String getContract_name() {
    return contract_name;
  }

  public void setContract_name(String contract_name) {
    this.contract_name = contract_name;
  }

  public String getCustomer_id() {
    return customer_id;
  }

  public void setCustomer_id(String customer_id) {
    this.customer_id = customer_id;
  }

  public Integer getOpp_id() {
    return opp_id;
  }

  public void setOpp_id(Integer opp_id) {
    this.opp_id = opp_id;
  }

  public double getDeposit() {
    return deposit;
  }

  public void setDeposit(double deposit) {
    this.deposit = deposit;
  }

  public double getTotle_money() {
    return totle_money;
  }

  public void setTotle_money(double totle_money) {
    this.totle_money = totle_money;
  }

  public Date getSiging_time() {
    return siging_time;
  }

  public void setSiging_time(Date siging_time) {
    this.siging_time = siging_time;
  }

  public Date getContract_start_time() {
    return contract_start_time;
  }

  public void setContract_start_time(Date contract_start_time) {
    this.contract_start_time = contract_start_time;
  }

  public Date getContract_end_time() {
    return contract_end_time;
  }

  public void setContract_end_time(Date contract_end_time) {
    this.contract_end_time = contract_end_time;
  }

  public Integer getUser_id() {
    return user_id;
  }

  public void setUser_id(Integer user_id) {
    this.user_id = user_id;
  }

  public Integer getContacts_id() {
    return contacts_id;
  }

  public void setContacts_id(Integer contacts_id) {
    this.contacts_id = contacts_id;
  }

  public Integer getDelete_state() {
    return delete_state;
  }

  public void setDelete_state(Integer delete_state) {
    this.delete_state = delete_state;
  }

  public String getEnclosure_url() {
    return enclosure_url;
  }

  public void setEnclosure_url(String enclosure_url) {
    this.enclosure_url = enclosure_url;
  }

  public String getRemarks() {
    return remarks;
  }

  public void setRemarks(String remarks) {
    this.remarks = remarks;
  }

  public String getCustomername() {
    return customername;
  }

  public void setCustomerName(String customername) {
    this.customername = customername;
  }

  public String getOpportunityname() {
    return opportunityname;
  }

  public void setOpportunityname(String opportunityname) {
    this.opportunityname = opportunityname;
  }

  public String getContactsname() {
    return contactsname;
  }

  public void setContactsname(String contactsname) {
    this.contactsname = contactsname;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }
}


